
//商品相关
import request from '@/utils/request'



export default {
    //实现搜索
    searchList(searchMap) {
        return request({
            url: `/search`,
            method: 'get',
            data:searchMap
        })
    },
    //获取搜索条件参数
    searchCondition() {
        return request({
            url: `/conditionSearch`,
            method: 'get'
        })
    },
    //查询商品详情数据
    showItem() {
        return request({
            url: `/goods`,
            method: 'get'
        })
    },
    //查询商品评论
    showComments(params) {
        return request({
            url: `/comments`,
            method: 'get',
            data:params
        })
    },
    //查询秒杀商品列表
    querySeckillGoods() {
        return request({
            url: `/seckill/goods`,
            method: 'get'
        })
    },
}
